package com.petadoption.serverclient.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.petadoption.serverclient.entity.Productlist;
import org.apache.ibatis.annotations.SelectKey;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author 汪仕杰
 * @since 2023-08-28
 */
public interface IProductlistService extends IService<Productlist> {

    @SelectKey(statement = "select LAST_INSERT_ID()", keyProperty = "productlist_id", before = false, resultType = Long.class)
    int addProductList(Productlist productlist);

    int updateProductList(Productlist productlist);

    Productlist findProductlist(Integer productlistId);

}
